home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Initializing an Extension
- Sent: 3/5/96 5:25 PM
- Received: 3/5/96 4:41 PM
- From: Damon Cokenias, cokenias@mtn-palace.com
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >If I can't get access to my FW_Cpart in my version of
- >InitMySOMNautilusShellExtension, should I make a second call in
- >MyCreateXYZProc of the following form?
- >
- > theExtension->SetObjectOfInterest (ev, fMyObjectOfInterest);
- >
- >Many thanks,
- >Bill Finzer
- >Educational Technology Director
- >Key Curriculum Press
-
- That's correct. You could even pass fMyObjectOfInterest as a parameter to
- your extension's InitMySOMNautilusShellExtension method.
-
- (By the way, when I copy/pasted my extension code, I forgot to rename that
- method. You would almost certainly call it something like
- InitXYZExtension).
-
- You must remember that by storing a C++ object pointer in your extension
- you are responsible for keeping the extension and part built with the same
- version of the same sources with the same compiler (since C++ object
- layouts differ among compilers/compiler versions). On a related note, an
- extension should *never* reveal the C++ object to its clients. They
- wouldn't know what to do with it :-)
-
- -Damon
-
-
- +-----------------------------------------------------------------------+
- | /\ Damon Cokenias |
- | /^^\ cokenias@mtn-palace.com |
- | /____\ Visit the Mountain Palace at http://www.netgate.net/~cokenias |
- +-----------------------------------------------------------------------+
-
-